import { FC } from "react";
import { CompProps } from "../../types/comp";
import { Card } from "antd";

const CardWrap: FC<CompProps> = ({ children }) => {
  return <Card bodyStyle={{ padding: 5 }} className="overflow-auto" style={{
    maxHeight: 320,
    minHeight: 80,
    overflowY: "auto"
  }}>
    {children}
  </Card>;
};

export default CardWrap;
